package com.xmtlxx.wms.mapper;

import com.xmtlxx.common.core.mapper.BaseMapperPlus;
import com.xmtlxx.wms.domain.Handover;
import com.xmtlxx.wms.domain.bo.HandoverBo;
import com.xmtlxx.wms.domain.vo.HandoverVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 交接信息Mapper接口
 *
 * @author xmtlxx
 * @date 2022-08-15
 */
public interface HandoverMapper extends BaseMapperPlus<HandoverMapper, Handover, HandoverVo> {
    /**
     * 根据条件分页查询交接信息
     *
     * @param handover 交接信息
     * @return Page Handover
     */
//    @DataPermission({
//        @DataColumn(key = "tenantName", value = "h.create_by"),
//        @DataColumn(key = "deptName", value = "h.dept_id"),
//        @DataColumn(key = "userName", value = "h.create_by")
//    })
    Page<HandoverVo> selectPageHandoverList(@Param("page") Page<Handover> page,@Param("handover") HandoverBo handover);

    /**
     * 查询交接信息列表
     *
     * @param handover 交接信息
     * @return 交接信息集合
     */
//    @DataPermission({
//        @DataColumn(key = "tenantName", value = "h.create_by"),
//        @DataColumn(key = "deptName", value = "h.dept_id"),
//        @DataColumn(key = "userName", value = "h.create_by")
//    })
    List<HandoverVo> selectHandoverList(@Param("handover") HandoverBo handover);

    HandoverVo selectHandoverVoByID(String id);

    HandoverVo selectHandoverVoByObjid(@Param("handover") HandoverBo handover);
}
